<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        body {
            width: 200px;
            padding: 16px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        
        .title {
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .title img {
            width: 20px;
            height: 20px;
        }
        
        .menu-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 10px;
            margin-bottom: 8px;
            border: none;
            border-radius: 6px;
            background: #f8f9fa;
            cursor: pointer;
            font-size: 14px;
            color: #495057;
            transition: all 0.2s ease;
        }
        
        .menu-btn:hover {
            background: #e9ecef;
        }
        
        .menu-btn i {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }
        
        .divider {
            height: 1px;
            background: #dee2e6;
            margin: 12px 0;
        }
        
        .footer {
            font-size: 12px;
            color: #6c757d;
            text-align: center;
            margin-top: 12px;
        }

        /* 开关按钮样式 */
        .switch-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .switch-label {
            font-size: 14px;
            color: #495057;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .3s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #0d6efd;
        }

        input:checked + .slider:before {
            transform: translateX(20px);
        }
    </style>
</head>
<body>
    <div class="title">
        <img src="images/icon48.png" alt="表单宝">
        表单宝
    </div>
    
    <div class="switch-container">
        <span class="switch-label">启用插件</span>
        <label class="switch">
            <input type="checkbox" id="enableSwitch" checked>
            <span class="slider"></span>
        </label>
    </div>
    
    <button class="menu-btn" id="editBtn">
        <i>✏️</i>
        编辑预设信息
    </button>
    
    <button class="menu-btn" id="helpBtn">
        <i>📖</i>
        使用教程
    </button>
    
    <div class="divider"></div>
    
    <div class="footer">
        Design by abin
    </div>

    <script src="js/popup.js"></script>
</body>
</html> 